package com.lancoo.tyjx.multichatroom.model;

import java.io.Serializable;


public class ChatItem implements Serializable{
	public static final int CHAT = 0;
	public static final int GROUP_CHAT = 1;
	public static final int NOTI = 2;

	public int chatType;   // 0 chat  1 groupChat 2 noti
	public String chatName;  //群聊的话跟username不一样
	public String username;  //对方的昵称
	public String head;
	public String msg;
	public String sendDate;
	public int inOrOut; //0代表in 1代表out
	public String whos;
	public int sendState;//0代表正在发送，1代表发送成功，2代表发送失败
	private String msgType;

	public int voicetime;

	public String fileName;
	public String fileUrl;

	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	public int getVoicetime() {
		return voicetime;
	}

	public void setVoicetime(int voicetime) {
		this.voicetime = voicetime;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFileUrl() {
		return fileUrl;
	}

	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}

	//选用
//	public Bitmap headBitmap;

	public ChatItem() {
		super();
	}

	public ChatItem(int chatType, String chatName, String username, String head, String msg, String sendDate,
                    int inOrOut, int sendState) {
		super();
		this.chatType = chatType;
		this.chatName = chatName;
		this.username = username;
		this.head = head;
		this.msg = msg;
		this.sendDate = sendDate;
		this.inOrOut = inOrOut;
		this.sendState = sendState;
	}
}
